For i = 0 To List1.ListCount

您所在的位置:网站首页 vb listcount For i = 0 To List1.ListCount

For i = 0 To List1.ListCount

#For i = 0 To List1.ListCount| 来源: 网络整理| 查看: 265

listcount 属性是返回数据的条数,但是实际代码中用的时候下标是从0开始算起的 所以 是0~ 条数-1, 也就是0~listcount-1 咯! ^_^for i = 0 to list1.listcount -1 循环 listcount 次,因为数据本来就有listcount个 所以不会报错的,是正确的写法

for i = 0 to list1.listcount 循环 listcount+1次 当然咯,下标为listcount+1 的位置没有东西,肯定益处了,可能会报错的,



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3